Editing Reports: Adding Fields and Data
The Report Data and Report Fields panels of the Scripting Workbench are where you find the building blocks needed to add fields and data to a report template.
The Report Fields panel is the one displayed by default since it will be used the more often and also reflects the actual content of existing reports. It also simplifies how the data is presented, since only the fields for the items selected on the Report Data panel are presented. Fields already present in the report are highlighted in the Report Fields tree.
New fields are added to the report template by dragging and dropping them on the design surface. When a group of fields is dropped (either by multiple selections or by selecting a field container in the tree view) a table is automatically created in the report.
When more or different report data fields are needed, click the Report Data tab at the bottom of the application workspace to to switch to the Report Data panel.
The Report Data panel is used to select and configure the data that will be available for the report and displayed in the Report Fields panel. The selection is done by double-clicking or dragging and dropping groups of data to the Selected Report Data tray displayed below the report designer.
This mechanism can also be used to create multiple data instances (identified by their “Data Name” property) to create reports which are designating their data by name or index. This can be useful for “before/after” reports for instance where each report field refers to a named image instance.